<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:o="http://openfaces.org/"
	xmlns:s="http://jboss.com/products/seam/taglib"
	template="/WEB-INF/esquema/permitTemplate.xhtml">


	<ui:define name="mainControls">
		<h:outputText value="Opciones" />
		<h:outputText value="     " />
		<h:panelGroup>
			<o:commandButton value="&lt;&lt; #{messages['BACK']}" onclick="goBack();"/>
			<o:commandButton value="#{messages['FINISH']}" onclick="proceed();"/>
		</h:panelGroup>
	</ui:define>

	<ui:define name="title">
		<div align="center">
			<br/>
			<strong>#{messages['operation_permit.start_header']}</strong>
			<rich:separator lineType="solid"/>
			<br/>
		</div>
	</ui:define>
	
	<ui:define name="permitBody">
		<h:form>
			
			<div align="center">
				<ui:include src="includes/inputData/proceedDataIncl.xhtml" />
				
				<br />
				<br />
			</div>

			<a4j:jsFunction
				name="goBack"
				ajaxSingle="true"
				action="#{operationPermitHelper.goBack}">
			</a4j:jsFunction>
			<a4j:jsFunction
				name="proceed"
				action="#{operationPermitHelper.beginProcess}">
			</a4j:jsFunction>
		</h:form>
	</ui:define>
</ui:composition>
